<template>
    <fieldset>
        <legend>混入组件</legend>
        <h1>一些内容</h1>
        <button @click="handleClick">点击</button>
    </fieldset>
</template>
<script>
import mixCom from '../../mixins'
    export default{
        mixins:[mixCom],
        data(){
            return {
                msg:'只因你太美'
            }
        },
        methods:{
             handleClick(){
                 console.log('组件的点击事件')
             }
        },
        mounted(){
            console.log('组件的Mounted钩子函数')
        },
        component:{
            mixCom
        }
    }
</script>